package com.rs;

import java.io.IOException;

import com.rs.cache.Cache;
import com.rs.cache.loaders.ItemsEquipIds;
import com.rs.cores.CoresManager;
import com.rs.game.RegionBuilder;
import com.rs.game.World;
import com.rs.game.npc.combat.CombatScriptsHandler;
import com.rs.game.player.content.FishingSpotsHandler;
import com.rs.game.player.content.FriendChatsManager;
import com.rs.game.player.controlers.ControlerHandler;
import com.rs.game.player.cutscenes.CutscenesHandler;
import com.rs.game.player.dialogues.DialogueHandler;
import com.rs.game.worldlist.WorldList;
import com.rs.utils.DTRank;
import com.rs.utils.DisplayNames;
import com.rs.utils.IPBanL;
import com.rs.utils.ItemBonuses;
import com.rs.utils.ItemExamines;
import com.rs.utils.Logger;
import com.rs.utils.MusicHints;
import com.rs.utils.NPCBonuses;
import com.rs.utils.NPCCombatDefinitionsL;
import com.rs.utils.NPCDrops;
import com.rs.utils.NPCSpawning;
import com.rs.utils.NPCSpawns;
import com.rs.utils.ObjectSpawns;
import com.rs.utils.PkRank;
import com.rs.utils.SQL;
import com.rs.utils.ShopsHandler;
import com.rs.utils.huffman.Huffman;

public class Initializer {
	
//	public static MainLoader vote = new MainLoader("geryonrs.com", "treetop_geryon", "cxzdsaewq321", "treetop_geryonvotes");
	
	public static void loadFiles() throws IOException {
		Logger.log("Launcher", "Launching Cache...");
		Cache.init();
		ItemsEquipIds.init();
		Huffman.init();
		Logger.log("Launcher", "Launching Data Files...");
		IPBanL.init();
		PkRank.init();
		DTRank.init();
		//TypeContest.Run();		
		ObjectSpawns.init();
		NPCSpawns.init();
		NPCCombatDefinitionsL.init();
		NPCBonuses.init();
		NPCDrops.init();
		ItemExamines.init();
		ItemBonuses.init();
		MusicHints.init();
		ShopsHandler.init();
		DisplayNames.init();
		Logger.log("Launcher", "Launching NPC Spawns...");
		NPCSpawning.spawnNPCS();
		NPCSpawning.npcSpawn();
		Logger.log("Launcher", "Launching Fishing Spots...");
		FishingSpotsHandler.init();
		Logger.log("Launcher", "Launching NPC Combat Scripts...");
		CombatScriptsHandler.init();
		Logger.log("Launcher", "Launching Dialogues...");
		DialogueHandler.init();
		Logger.log("Launcher", "Launching Controlers...");
		ControlerHandler.init();
		Logger.log("Launcher", "Launching Cutscenes...");
		CutscenesHandler.init();
		Logger.log("Launcher", "Launching Friend Chats Manager...");
		FriendChatsManager.init();
		Logger.log("Launcher", "Launching Cores Manager...");
		CoresManager.init();
		Logger.log("Launcher", "Launching World...");
		World.init();
		Logger.log("Launcher", "Launching WorldList...");
		WorldList.init();
		Logger.log("Launcher", "Launching Region Builder...");
		RegionBuilder.init();
		Logger.log("Launcher", "Launching Forum Integration...");
		//ForumRights.createConnection();
		Logger.log("Launcher", "Launching Highscores...");
		SQL.createConnection();
	}
}